package com.hkp.demo.service.impl;

import com.hkp.demo.entity.Rule;
import com.hkp.demo.mapper.RuleMapper;
import com.hkp.demo.service.IRuleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * <p>
 * 专项规则关联表 服务实现类
 * </p>
 *
 * @author HuKangPing
 * @since 2023-02-22 14:20:35
 */
@Service
@Transactional(readOnly = true, rollbackFor = Exception.class)
public class RuleServiceImpl extends ServiceImpl<RuleMapper, Rule> implements IRuleService {

    @Resource
    private RuleMapper ruleMapper;

    @Override
    public Long getRuleNum(String day) {
        return ruleMapper.getRuleNum(day);
    }
}
